#include "MySqlUpdatePlanCacheStatement.h"

#include "../../../../ast/statement/SQLSelect.h"
#include "../../visitor/MySqlASTVisitor.h"

SQLSelect_ptr MySqlUpdatePlanCacheStatement::getFormSelect()
{
  return formSelect;
}

void MySqlUpdatePlanCacheStatement::setFormSelect(SQLSelect_ptr formSelect)
{
  this->formSelect = formSelect;
}

SQLSelect_ptr MySqlUpdatePlanCacheStatement::getToSelect()
{
  return toSelect;
}

void MySqlUpdatePlanCacheStatement::setToSelect(SQLSelect_ptr toSelect)
{
  this->toSelect = toSelect;
}

void MySqlUpdatePlanCacheStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlUpdatePlanCacheStatement)))
  {
    acceptChild(visitor, formSelect);
    acceptChild(visitor, toSelect);
  }
  visitor->endVisit(SharedObject(MySqlUpdatePlanCacheStatement));
}
